import axios from 'axios'

// create an axios instance
const service = axios.create({
  // 环境变量
  baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
  // baseURL: 'http://ihrm-java.itheima.net', // url = base url + request url
  timeout: 5000 // request timeout
})

export default service
